//
//  TouchView.m
//  03-UIResponder
//
//  Created by 402030900@qq.com on 16/7/18.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView
// 继承于UIResponder
// APPDelegate UIView UIViewController

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    NSLog(@"self.view = %@",self.nextResponder);
    NSLog(@"VC = %@",self.nextResponder.nextResponder);
    NSLog(@"window = %@",self.nextResponder.nextResponder.nextResponder);
    NSLog(@"Application = %@",self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"AppDelegate = %@",self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    
//    [super touchesBegan:touches withEvent:event];
//    NSLog(@"%@------%s",NSStringFromClass([self class]),__FUNCTION__);
    
}
-(void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    NSLog(@"%@------%s",[self class],__FUNCTION__);
}
-(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    NSLog(@"%@------%s",[self class],__FUNCTION__);
}
@end
